<?php
	require_once('client_config.php');
	require_once('ntml_soapclient.php');

	$client = new MyNTMLSoapClient('./ews/services.wsdl', $soap_options);
	$client->set_profile($user_profile['login'], $user_profile['password']);
	$appointment = new Appointment();
	$appointment->set_subject('Test hello');
	$appointment->set_desc('description');
	$appointment->set_categories(array("cat1", "cat2"));
	$appointment->set_start_datetime('2008-12-07T11:00:00');
	$appointment->set_end_datetime('2008-12-07T12:00:00');

	$id = $client->add_appointment($appointment, $errno, $error);
	if($id){
		echo $id;
	}else{
	echo $errno;
	echo $error;
	}
	exit;
?>